package com.iqiyi.pps.epg.core.model.statistic;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by zhang on 2016/1/25.
 */
@Entity
@Table(name="st_ocr_new_data")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class StatisticOcrNewData {
    private long id;
    private long legoProgramId;
    private String channelName;
    private String userTitle;
    private String ocrTitle;
    private int percent;
    private String user;
    private Timestamp liveBeginTime;
    private Timestamp liveEndTime;
    private int ocrFlag;
    private int ocrTitleCharLen = 0;
    private int usrTitleCharLen = 0;
    private Timestamp addTime = new Timestamp(System.currentTimeMillis());

    private String imageUrl = null;
    private String locations = null;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "user")
    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @Column(name = "lego_program_id")
    public long getLegoProgramId() {
        return legoProgramId;
    }

    public void setLegoProgramId(long legoProgramId) {
        this.legoProgramId = legoProgramId;
    }

    @Column(name = "channel_name")
    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }


    @Column(name = "ocr_title")
    public String getOcrTitle() {
        return ocrTitle;
    }

    public void setOcrTitle(String ocrTitle) {
        this.ocrTitle = ocrTitle;
    }

    @Column(name = "user_title")
    public String getUserTitle() {
        return userTitle;
    }

    public void setUserTitle(String userTitle) {
        this.userTitle = userTitle;
    }

    @Column(name = "percent")
    public int getPercent() {
        return percent;
    }

    public void setPercent(int percent) {
        this.percent = percent;
    }

    @Column(name = "live_begin_time")
    public Timestamp getLiveBeginTime() {
        return liveBeginTime;
    }

    public void setLiveBeginTime(Timestamp liveBeginTime) {
        this.liveBeginTime = liveBeginTime;
    }

    @Column(name = "live_end_time")
    public Timestamp getLiveEndTime() {
        return liveEndTime;
    }

    public void setLiveEndTime(Timestamp liveEndTime) {
        this.liveEndTime = liveEndTime;
    }

    @Column(name = "add_time")
    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    @Column(name = "ocr_flag")
    public int getOcrFlag() {
        return ocrFlag;
    }

    public void setOcrFlag(int ocrFlag) {
        this.ocrFlag = ocrFlag;
    }
    @Column(name = "ocr_title_char_len")
    public int getOcrTitleCharLen() {
        return ocrTitleCharLen;
    }

    public void setOcrTitleCharLen(int ocrTitleCharLen) {
        this.ocrTitleCharLen = ocrTitleCharLen;
    }
    @Column(name = "user_title_char_len")
    public int getUsrTitleCharLen() {
        return usrTitleCharLen;
    }

    public void setUsrTitleCharLen(int usrTitleCharLen) {
        this.usrTitleCharLen = usrTitleCharLen;
    }
    @Column(name = "image_url")
    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
    @Column(name = "locations")
    public String getLocations() {
        return locations;
    }

    public void setLocations(String locations) {
        this.locations = locations;
    }


}
